using System;
using UnityEngine.Networking;

namespace ToffeeHttp.Runtime.Core
{
    public class HttpResponse
    {
        public object Content;
        public UnityWebRequest WebRequest;
        public bool IsError
        {
            get => this.WebRequest.isHttpError || this.WebRequest.isNetworkError;
        }
    }
}